package com.cloay.photolibdemo.util;

import com.cloay.photolibdemo.BuildConfig;

import android.content.Context;
import android.util.Log;
import android.widget.Toast;

/**
 * 
 * @ClassName: Utils 
 * @author cloay Email:shangrody@gmail.com 
 * @date 2014-12-18 上午11:03:21 
 *
 */
public class Utils {
	public static void showLog(String log){
		if(log == null)
			return;
		if(BuildConfig.DEBUG)
			Log.v("com.cloay.photolibdemo", log);
	}
	
	public static void showShortMsg(Context context, String msg){
		Toast.makeText(context, msg, Toast.LENGTH_SHORT).show();
	}
	
	public static void showLongMsg(Context context, String msg){
		Toast.makeText(context, msg, Toast.LENGTH_LONG).show();
	}
	
	public static void showMsg(Context context, String msg){
		showShortMsg(context, msg);
	}
}
